package cn.sxt.yxl.user.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import cn.sxt.yxl.common.util.PageInfoUtil;
import cn.sxt.yxl.user.pojo.AAdmins;
import cn.sxt.yxl.user.pojo.ARole;

public interface IUserService {
	//管理员模块	
		//查询一条
		AAdmins findOneAdminsService(Map<String,Object> condMap);
		//添加一个
		JSONObject saveOneAdminService(AAdmins admin);
		//更新一个
		JSONObject updateOneAdminService(AAdmins admin);
		//shanchu删除一个
		JSONObject deleteOneAdminService(AAdmins admin);
		//条件查询
		List<AAdmins> findCondListAdminService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
	//角色模块
		//查询一条
		ARole findOneRoleService(Map<String,Object> condMap);
		//添加一个
		JSONObject saveOneRoleService(ARole role);
		//更新一个
		JSONObject updateOneRoleService(ARole role);
		//shanchu删除一个
		JSONObject deleteOneRoleService(ARole role);
		//条件查询
		List<ARole> findCondListRoleService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);
	}
